#include "LoginFrame.h"


LoginFrame::LoginFrame(void)
	:_view(nullptr)
{
	initFrame();
}


LoginFrame::~LoginFrame(void)
{
	EventMgr::inst()->removeEventListener("ns_RoleInfo", this, &LoginFrame::onRoleInfoEvent);
}

void LoginFrame::initFrame()
{
	_view = LoginView::create();
	_view->_playGame->initWithCallback(CC_CALLBACK_1(LoginFrame::palyGame, this));

	EventMgr::inst()->addEventListener("ns_RoleInfo", this, &LoginFrame::onRoleInfoEvent);
}

void LoginFrame::show( void* data )
{

}

void LoginFrame::close()
{

}

void LoginFrame::palyGame( cocos2d::Object *sender )
{
	ProxyMgr::inst()->initProxy();
}

void LoginFrame::onRoleInfoEvent( void* data )
{

}
